/*
 * Copyright (c) 2017.
 * @author fff
 * 17-10-23 下午4:23
 *
 */

package com.cpit.qualitycontrol.dao;

import com.cpit.qualitycontrol.entity.Cooperator;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface  CooperatorRepository extends JpaRepository<Cooperator, Long>, JpaSpecificationExecutor<Cooperator> {
    Page<Cooperator> findByNameContaining(String name, Pageable pageable);
    Cooperator  findByName(String name);
}
